const express=require('express');
const server=express();
server.get('/user', function (req,res){
    console.log('get接口请求');
    console.log(req.query);
    
    res.send({code:1,msg:'get请求'})
});
server.post('/user', function (req,res){
    console.log('post接口请求');
    res.send({code:1,msg:'post请求'})
});
server.use('/',express.static('www'))


server.listen(8080)